$intYear = Date.GetYear
("<date>")
Returns the year from the given date expression.
Parameters
<date> Any valid date expression in dd/mm/yyyy format.
Return Value
Returns an integer representing the year.
Remarks
- Similar to Year function in VB Script.
Example
$ret = date.GetYear ("17/10/2005")